*Replication Code for Fraga and Miller 2021 JOP. "Who Does Voter ID Keep from Voting?"
*This code replicates county-level analysis in the paper.
*This analysis is found in Table 4, A9, and A10.

*Import replication file
use fraga_miller_county_replication.dta,clear



*********Models

*Table 4: Determinants of County-Level RID Rates

*This loop creates columns 1-4, in order
foreach i of varlist rid_rate-hardship_rate {
reg `i' perc_obama perc_black perc_hisp perc_no_college age_1824 age_75over hhi_tenthous, robust
      }

*Appendix Table A9: Determinants of County-Level RID Rates in Coun-ties Filing at Least One RID

*This loop creates columns 1-4, in order
foreach i of varlist rid_rate-hardship_rate {
reg `i' perc_obama perc_black perc_hisp perc_no_college age_1824 age_75over hhi_tenthous if no_rid==0, robust
}
	
*Appendix Table A10: County-Level Determinants of Filing at Least One RID
*This loop creates columns 1-4, in order	
	
logit at_least_one dem perc_black perc_hisp perc_no_college age_1824 age_75over hhi_tenthous log_pop , robust

	
logit at_least_one i.dem##c.perc_black i.dem##c.perc_hisp perc_no_college age_1824 age_75over hhi_tenthous log_pop, robust




